﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    public class DataTableRestrRuleDto : AuditedEntityDto<Guid>
    {
        /// <summary>
        /// 
        /// </summary>
        public DataTableDictDto DataTableDict { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid DataTableDictId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DataTableColumnDto DataTableColumn { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid DataTableColumnId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public EnumTableRestrRuleProvider TableRestrRuleProvider { get; set; }

        public string TableRestrRuleProviderName
        {
            get
            {
                return TableRestrRuleProvider.ToString();
            }
        }

        /// <summary>
        /// 限制条件
        /// </summary>
        public EnumTableRestrCondition TableRestrCondition { get; set; }

        public string TableRestrConditionName
        {
            get
            {
                return TableRestrCondition.ToString();
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public string? RestrRuleValue { get; set; }
    }
}
